package com.lcifn.zk.console.support;

import java.util.UUID;

/**
 * @author LC
 * @date 2020/6/16 20:44
 */
public abstract class AbstractZkSession implements ZkSession{

    private String sessionId;

    protected AbstractZkSession() {
        this.sessionId = UUID.randomUUID().toString();
    }

    /**
     * 获取session id
     * @return
     */
    @Override
    public String getSessionId() {
        return sessionId;
    }
}
